Ext.define('SRMT.view.Register', {
	extend: 'Ext.form.Panel',
	alias: 'widget.srmtRegister',
	
    layout: 'anchor',
    bodyPadding: 10,
    defaultType: 'textfield',
    items: [{
    	itemId: 'edtUserName',
        fieldLabel: 'User Name',
        name: 'username',
        allowBlank: false,
        anchor: '100%'
    },{
    	itemId: 'edtEmail',
        fieldLabel: 'Email',
        name: 'email',
        allowBlank: false,
        anchor: '100%',
        vtype: 'email'
    },{
    	itemId: 'edtUserID',
        fieldLabel: 'User ID',
        name: 'userid',
        allowBlank: false,
        anchor: '100%',
        vtype: 'alphanum'
    },{
    	itemId: 'edtPassword',
        fieldLabel: 'Password',
        name: 'password',
        allowBlank: false,
        anchor: '100%',
        vtype: 'alphanum',
        inputType: 'password'
    },{
    	itemId: 'edtRePassword',
        fieldLabel: 'Retype-Password',
        name: 're-password',
        allowBlank: false,
        anchor: '100%',
        vtype: 'alphanum',
        inputType: 'password'
    }],
    buttons: [{
    	itemId: 'btnReset',
    	text: 'Reset'
    },{
    	itemId: 'btnSubmit',
    	text: 'Submit',
    	formBind: true, // only enable until form is valid
    	disabled: true
    }]
        
});